The file `vignettes/jepsr.Rmd` contains code to replicate all results in the paper and appendix.

  * See [R Markdown] below for how to run this file.

## Required packages

In addition to additional included code (see below), this file requires the following R packages:

  * broom
  * cjoint
  * dplyr
  * ggplot2
  * haven
  * here
  * knitr
  * lmtest
  * margins
  * ordinal
  * purrr
  * qdap
  * reshape2
  * readr
  * rJava
  * stringr
  * tidyr
  * tidyselect

Please make sure you have up-to-date versions of these packages.

Installation of one or more of these packages requires you to have Java installed.

  * Visit https://www.java.com for instructions if you are not sure Java is installed.

This code also relies on projects under development, which are included within `vignettes/data`.

  * `wickr` extends `broom` (https://broom.tidymodels.org/) for summarizing models.
  * `galaxy` builds regression tables from `wickr` summaries.

The main file includes code to load the additional files in `vignettes/data`.

## R Markdown

The file is in R Markdown format. This format produces structured reports with code built in.

Code in R Markdown files is organized into chunks. Each chunk looks something like

```{r hello, eval=TRUE, include=TRUE}
cat("Hello, world!\n")
```

Run the chunks in the order presented in the file to create the output.

  * If using RStudio, you can click the play icon on each chunk to run all statements in the chunk.
  * Clicking the "Knit" button in RStudio will prepare a complete PDF from the file.
  * You can also copy and paste statements from a chunk into the R console.
  * Chunks marked with `eval=FALSE` are not run (though they were run to prepare the document).

Please see https://rmarkdown.rstudio.com/lesson-1.html for complete instructions on R Markdown.
